﻿package problems.diningphilosophers.philosopherssolution;


import problems.BenchmarkSemaphore;
import problems.diningphilosophers.philosophers.AbstractPhilosopher;
import problems.diningphilosophers.philosophers.DeadlockPhilosopher;

public class DiningPhilosophersWithDeadLock extends AbstractDiningPhilosophersSolution
{
    public DiningPhilosophersWithDeadLock(int nbPhilosophers) {
    	super(nbPhilosophers);
    }

    @Override
    protected AbstractPhilosopher createPhilosopher(BenchmarkSemaphore leftFork, BenchmarkSemaphore rightFork)
    {
        return new DeadlockPhilosopher(leftFork, rightFork);
    }
}